package cn.stylefeng.guns.modular.business.frequency.announcement.service;


import cn.stylefeng.guns.core.pojo.page.PageResult;
import cn.stylefeng.guns.modular.business.frequency.announcement.entity.Announcement;
import cn.stylefeng.guns.modular.business.frequency.announcement.model.param.AnnouncementParam;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 公告 服务类
 *
 * @author 余杰
 * @date 2022/11/14 13:38
 */
public interface AnnouncementService extends IService<Announcement> {

    /**
     * 分页查询公告
     *
     * @author 余杰
     * @date 2022/11/14 13:38
     */
    PageResult<Announcement> page(AnnouncementParam announcementParam);

    /**
     * 查询所有公告
     *
     * @author 余杰
     * @date 2022/11/14 13:38
     */
    List<Announcement> list(AnnouncementParam announcementParam);

    /**
     * 添加公告
     *
     * @author 余杰
     * @date 2022/11/14 13:38
     */
    void add(AnnouncementParam announcementParam);

    /**
     * 删除公告
     *
     * @author 余杰
     * @date 2022/11/14 13:38
     */
    void delete(AnnouncementParam announcementParam);

    /**
     * 编辑公告
     *
     * @author 余杰
     * @date 2022/11/14 13:38
     */
    void edit(AnnouncementParam announcementParam);

    /**
     * 查看详情公告
     *
     * @author 余杰
     * @date 2022/11/14 13:38
     */
    Announcement detail(AnnouncementParam announcementParam);

}